
<template tag="以下文档内容为hycli自动生成">
  <div>
    <el-dialog
      v-model="conf.aaake_visible"
      title="删除"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaake">
      <span>确认删除吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaake" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaake" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaaki_visible"
      title="设计中"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaaki">
      <span>确认设计中需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaaki" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaaki" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakj_visible"
      title="待内评"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakj">
      <span>确认待内评需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakj" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakj" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakk_visible"
      title="待预评"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakk">
      <span>确认待预评需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakk" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakk" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakm_visible"
      title="待终版调整"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakm">
      <span>确认待终版调整需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakm" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakm" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakn_visible"
      title="评审完成"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakn">
      <span>确认评审完成需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakn" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakn" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaako_visible"
      title="完成"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaako">
      <span>确认完成需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaako" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaako" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakq_visible"
      title="延期"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakq">
      <span>确认延期需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakq" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakq" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakr_visible"
      title="关闭"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakr">
      <span>确认关闭需求吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakr" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakr" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaaks_visible"
      title="归档"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaaks">
      <span>确认归档吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaaks" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaaks" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
    <el-dialog
      v-model="conf.aaakt_visible"
      title="激活"  width="30%"  draggable
      :close-on-click-modal="false"  :before-close="hide_aaakt">
      <span>确认激活吗?</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="hide_aaakt" icon="close">取消</el-button>
          <el-button type="primary" @click="save_aaakt" icon="select">确定</el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data(){
    return{
      conf:{
          aaake_visible:false, //删除
          aaaki_visible:false, //设计中
          aaakj_visible:false, //待内评
          aaakk_visible:false, //待预评
          aaakm_visible:false, //待终版调整
          aaakn_visible:false, //评审完成
          aaako_visible:false, //完成
          aaakq_visible:false, //延期
          aaakr_visible:false, //关闭
          aaaks_visible:false, //归档
          aaakt_visible:false, //激活
      },
      //删除
      form_aaake:{ 
        prod_id:"",
      },
      //设计中
      form_aaaki:{ 
        prstatus:"",
      },
      //待内评
      form_aaakj:{ 
        prstatus:"",
      },
      //待预评
      form_aaakk:{ 
        prstatus:"",
      },
      //待终版调整
      form_aaakm:{ 
        prstatus:"",
      },
      //评审完成
      form_aaakn:{ 
        prstatus:"",
      },
      //完成
      form_aaako:{ 
        prstatus:"",
      },
      //延期
      form_aaakq:{ 
        prstatus:"",
      },
      //关闭
      form_aaakr:{ 
        prstatus:"",
      },
      //归档
      form_aaaks:{ 
        archive_status:"",
      },
      //激活
      form_aaakt:{ 
        archive_status:"",
      },
    }
  },
  methods:{
     //--------------------删除---------------------------------
      //显示 删除 弹出框
      show_aaake(fm){
         Object.assign(this.form_aaake,fm)
         this.conf.aaake_visible = true;
      },
      //隐藏 删除 弹出框
      hide_aaake(){
        this.conf.aaake_visible = false;
      },
      //保存 删除 弹出框数据
      save_aaake(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/del",this.form_aaake).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '删除成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaake()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `删除失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------设计中---------------------------------
      //显示 设计中 弹出框
      show_aaaki(fm){
         Object.assign(this.form_aaaki,fm)
         this.conf.aaaki_visible = true;
      },
      //隐藏 设计中 弹出框
      hide_aaaki(){
        this.conf.aaaki_visible = false;
      },
      //保存 设计中 弹出框数据
      save_aaaki(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/check2sj",this.form_aaaki).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '设计中成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaaki()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `设计中失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------待内评---------------------------------
      //显示 待内评 弹出框
      show_aaakj(fm){
         Object.assign(this.form_aaakj,fm)
         this.conf.aaakj_visible = true;
      },
      //隐藏 待内评 弹出框
      hide_aaakj(){
        this.conf.aaakj_visible = false;
      },
      //保存 待内评 弹出框数据
      save_aaakj(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/check2cp",this.form_aaakj).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '待内评成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakj()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `待内评失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------待预评---------------------------------
      //显示 待预评 弹出框
      show_aaakk(fm){
         Object.assign(this.form_aaakk,fm)
         this.conf.aaakk_visible = true;
      },
      //隐藏 待预评 弹出框
      hide_aaakk(){
        this.conf.aaakk_visible = false;
      },
      //保存 待预评 弹出框数据
      save_aaakk(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/check2yp",this.form_aaakk).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '待预评成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakk()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `待预评失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------待终版调整---------------------------------
      //显示 待终版调整 弹出框
      show_aaakm(fm){
         Object.assign(this.form_aaakm,fm)
         this.conf.aaakm_visible = true;
      },
      //隐藏 待终版调整 弹出框
      hide_aaakm(){
        this.conf.aaakm_visible = false;
      },
      //保存 待终版调整 弹出框数据
      save_aaakm(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/check2zbtz",this.form_aaakm).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '待终版调整成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakm()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `待终版调整失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------评审完成---------------------------------
      //显示 评审完成 弹出框
      show_aaakn(fm){
         Object.assign(this.form_aaakn,fm)
         this.conf.aaakn_visible = true;
      },
      //隐藏 评审完成 弹出框
      hide_aaakn(){
        this.conf.aaakn_visible = false;
      },
      //保存 评审完成 弹出框数据
      save_aaakn(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/designfinish",this.form_aaakn).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '评审完成成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakn()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `评审完成失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------完成---------------------------------
      //显示 完成 弹出框
      show_aaako(fm){
         Object.assign(this.form_aaako,fm)
         this.conf.aaako_visible = true;
      },
      //隐藏 完成 弹出框
      hide_aaako(){
        this.conf.aaako_visible = false;
      },
      //保存 完成 弹出框数据
      save_aaako(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/batfinish",this.form_aaako).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '完成成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaako()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `完成失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------延期---------------------------------
      //显示 延期 弹出框
      show_aaakq(fm){
         Object.assign(this.form_aaakq,fm)
         this.conf.aaakq_visible = true;
      },
      //隐藏 延期 弹出框
      hide_aaakq(){
        this.conf.aaakq_visible = false;
      },
      //保存 延期 弹出框数据
      save_aaakq(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/batdelay",this.form_aaakq).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '延期成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakq()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `延期失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------关闭---------------------------------
      //显示 关闭 弹出框
      show_aaakr(fm){
         Object.assign(this.form_aaakr,fm)
         this.conf.aaakr_visible = true;
      },
      //隐藏 关闭 弹出框
      hide_aaakr(){
        this.conf.aaakr_visible = false;
      },
      //保存 关闭 弹出框数据
      save_aaakr(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/batclose",this.form_aaakr).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '关闭成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakr()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `关闭失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------归档---------------------------------
      //显示 归档 弹出框
      show_aaaks(fm){
         Object.assign(this.form_aaaks,fm)
         this.conf.aaaks_visible = true;
      },
      //隐藏 归档 弹出框
      hide_aaaks(){
        this.conf.aaaks_visible = false;
      },
      //保存 归档 弹出框数据
      save_aaaks(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/archprod",this.form_aaaks).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '归档成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaaks()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `归档失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
     //--------------------激活---------------------------------
      //显示 激活 弹出框
      show_aaakt(fm){
         Object.assign(this.form_aaakt,fm)
         this.conf.aaakt_visible = true;
      },
      //隐藏 激活 弹出框
      hide_aaakt(){
        this.conf.aaakt_visible = false;
      },
      //保存 激活 弹出框数据
      save_aaakt(){
        let that = this
        this.$theia.http.post("/ws/prod/requirement/unarchprod",this.form_aaakt).then(res=>{
          that.conf.confirmVisible = false 
          that.$notify.success({title: '成功',message: '激活成功',duration:5000})
          that.$emit("onsaved")
          that.hide_aaakt()
       }).catch(err=>{
          that.conf.confirmVisible = false
          let code = err.response.status
          let msg= `激活失败(${code})`
          that.$notify.error({title: '失败',message:msg,duration:5000})
       })
    },
    //-----------------------------------------------------------
  },
}
</script>